import request from '@/utils/request'

export default {
    // 条件查询讲师分页
    getTeacherListPage(current, limit, teacherQuery) {
        return request({
          url: `/eduservice/teacher/pageTeacherCondition/${current}/${limit}`,
          method: 'post',
          data : teacherQuery
        })
    },
    // 根据id删除讲师
    deleteTeacherId(id) {
      return request({
        url: `/eduservice/teacher/${id}`,
        method: 'delete',
      })
  },
    // 添加讲师
    addTeacher(eduTeacher) {
      return request({
        url: `/eduservice/teacher/addTeacher`,
        method: 'post',
        data : eduTeacher
      })
  },
    //根据id查询讲师
    getTeacherInfo(id) {
      return request({
        url: `/eduservice/teacher/getTeacher/${id}`,
        method: 'get'
      })
  },
    //更新讲师
    updateTeacherInfo(eduTeacher) {
      return request({
        url: `/eduservice/teacher/updateTeacher`,
        method: 'post',
        data : eduTeacher
      })
    },
}
